package com.anolesoft.twelveFactory.planManagement.mapper;

import com.anolesoft.twelveFactory.planManagement.entity.ProcessingHistory;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ProcessingHistoryMapper {

    //查询
    List<ProcessingHistory> listProcessingHistory(@Param("processingHistory") ProcessingHistory processingHistory, Page<ProcessingHistory> page);

    //正常查询 不带条件
    List<ProcessingHistory> listProcessingHistory1();

    //添加
     Integer insert(ProcessingHistory processingHistory);

    //删除
    Integer delete(String objuid);

    //修改
    Integer update(ProcessingHistory processingHistory);

    //通过id查询
    ProcessingHistory selectById(String objuid);

//通过th查询
    ProcessingHistory selectByTh(String th);


//通过唯一字段查询
    ProcessingHistory selectByWYZD(String wyzd);
}
